/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openbrew.openbrewrf;

import com.openbrew.openbrewrf.views.BeerView;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import org.eclipse.persistence.annotations.CascadeOnDelete;

/**
 *
 * @author chapmand
 */
@Entity
@Table(name = "Brews")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Brews.findAll", query = "SELECT b FROM Brews b"),
    @NamedQuery(name = "Brews.findByBid", query = "SELECT b FROM Brews b WHERE b.bid = :bid"),
    @NamedQuery(name = "Brews.findByBState", query = "SELECT b FROM Brews b WHERE b.bState = :bState"),
    @NamedQuery(name = "Brews.findByBDate", query = "SELECT b FROM Brews b WHERE b.bDate = :bDate"),
    @NamedQuery(name = "Brews.findBySFTemp01", query = "SELECT b FROM Brews b WHERE b.sFTemp01 = :sFTemp01"),
    @NamedQuery(name = "Brews.findBySFGrav01", query = "SELECT b FROM Brews b WHERE b.sFGrav01 = :sFGrav01"),
    @NamedQuery(name = "Brews.findBySFDate01", query = "SELECT b FROM Brews b WHERE b.sFDate01 = :sFDate01"),
    @NamedQuery(name = "Brews.findBySFTime01", query = "SELECT b FROM Brews b WHERE b.sFTime01 = :sFTime01"),
    @NamedQuery(name = "Brews.findBySFNote01", query = "SELECT b FROM Brews b WHERE b.sFNote01 = :sFNote01"),
    @NamedQuery(name = "Brews.findByBtg", query = "SELECT b FROM Brews b WHERE b.btg = :btg"),
    @NamedQuery(name = "Brews.findByCTDate", query = "SELECT b FROM Brews b WHERE b.cTDate = :cTDate"),
    @NamedQuery(name = "Brews.findByCTTime", query = "SELECT b FROM Brews b WHERE b.cTTime = :cTTime"),
    @NamedQuery(name = "Brews.findByBpsi", query = "SELECT b FROM Brews b WHERE b.bpsi = :bpsi"),
    @NamedQuery(name = "Brews.findByCTTemp", query = "SELECT b FROM Brews b WHERE b.cTTemp = :cTTemp"),
    @NamedQuery(name = "Brews.findByPDate", query = "SELECT b FROM Brews b WHERE b.pDate = :pDate"),
    @NamedQuery(name = "Brews.findByPTime", query = "SELECT b FROM Brews b WHERE b.pTime = :pTime"),
    @NamedQuery(name = "Brews.findByVolLeft", query = "SELECT b FROM Brews b WHERE b.volLeft = :volLeft"),
    @NamedQuery(name = "Brews.findBySFVol01", query = "SELECT b FROM Brews b WHERE b.sFVol01 = :sFVol01"),
    @NamedQuery(name = "Brews.findByCTVol", query = "SELECT b FROM Brews b WHERE b.cTVol = :cTVol"),
    @NamedQuery(name = "Brews.findByPfvid", query = "SELECT b FROM Brews b WHERE b.pfvid = :pfvid"),
    @NamedQuery(name = "Brews.findBySfvid", query = "SELECT b FROM Brews b WHERE b.sfvid = :sfvid"),
    @NamedQuery(name = "Brews.findByCvid", query = "SELECT b FROM Brews b WHERE b.cvid = :cvid"),
    @NamedQuery(name = "Brews.findByKegVols", query = "SELECT b FROM Brews b WHERE b.kegVols = :kegVols"),
    @NamedQuery(name = "Brews.findByBtlVols", query = "SELECT b FROM Brews b WHERE b.btlVols = :btlVols"),
    @NamedQuery(name = "Brews.findByGanttColor", query = "SELECT b FROM Brews b WHERE b.ganttColor = :ganttColor"),
    @NamedQuery(name = "Brews.findByGanttStart", query = "SELECT b FROM Brews b WHERE b.ganttStart = :ganttStart"),
    @NamedQuery(name = "Brews.findByGanttSecond", query = "SELECT b FROM Brews b WHERE b.ganttSecond = :ganttSecond"),
    @NamedQuery(name = "Brews.findByGanttCond", query = "SELECT b FROM Brews b WHERE b.ganttCond = :ganttCond"),
    @NamedQuery(name = "Brews.findByGanttStop", query = "SELECT b FROM Brews b WHERE b.ganttStop = :ganttStop"),
    @NamedQuery(name = "Brews.findByGanttPID", query = "SELECT b FROM Brews b WHERE b.ganttPID = :ganttPID"),
    @NamedQuery(name = "Brews.findByGanttSID", query = "SELECT b FROM Brews b WHERE b.ganttSID = :ganttSID"),
    @NamedQuery(name = "Brews.findByGanttCID", query = "SELECT b FROM Brews b WHERE b.ganttCID = :ganttCID"),
    @NamedQuery(name = "Brews.findByGanttFGI", query = "SELECT b FROM Brews b WHERE b.ganttFGI = :ganttFGI"),
    @NamedQuery(name = "Brews.findByGanttFilter", query = "SELECT b FROM Brews b WHERE b.ganttFilter = :ganttFilter"),
    @NamedQuery(name = "Brews.findByGanttHarvest", query = "SELECT b FROM Brews b WHERE b.ganttHarvest = :ganttHarvest"),
    @NamedQuery(name = "Brews.findByGanttHarvestDate", query = "SELECT b FROM Brews b WHERE b.ganttHarvestDate = :ganttHarvestDate"),
    @NamedQuery(name = "Brews.findByGanttFine", query = "SELECT b FROM Brews b WHERE b.ganttFine = :ganttFine"),
    @NamedQuery(name = "Brews.findByVersion", query = "SELECT b FROM Brews b WHERE b.version = :version"),
    @NamedQuery(name = "Brews.findByOrigBrew", query = "SELECT b FROM Brews b WHERE b.origBrew = :origBrew"),
    @NamedQuery(name = "Brews.findInProcess", query = "SELECT b FROM Brews b WHERE b.bState<20"),
    @NamedQuery(name = "Brews.findNonBrewed", query = "SELECT b FROM Brews b WHERE b.bState<5")})
public class Brews implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "BID")
    private Integer bid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BState")
    private int bState;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BDate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date bDate;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SFTemp01")
    private float sFTemp01;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SFGrav01")
    private float sFGrav01;
    @Column(name = "SFDate01")
    @Temporal(TemporalType.DATE)
    private Date sFDate01;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SFTime01")
    @Temporal(TemporalType.TIME)
    private Date sFTime01;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 250)
    @Column(name = "SFNote01")
    private String sFNote01;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BTG")
    private float btg;
    @Column(name = "CTDate")
    @Temporal(TemporalType.DATE)
    private Date cTDate;
    @Basic(optional = false)
    @NotNull
    @Column(name = "CTTime")
    @Temporal(TemporalType.TIME)
    private Date cTTime;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BPSI")
    private float bpsi;
    @Basic(optional = false)
    @NotNull
    @Column(name = "CTTemp")
    private float cTTemp;
    @Column(name = "PDate")
    @Temporal(TemporalType.DATE)
    private Date pDate;
    @Basic(optional = false)
    @NotNull
    @Column(name = "PTime")
    @Temporal(TemporalType.TIME)
    private Date pTime;
    @Basic(optional = false)
    @NotNull
    @Column(name = "VolLeft")
    private float volLeft;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SFVol01")
    private float sFVol01;
    @Basic(optional = false)
    @NotNull
    @Column(name = "CTVol")
    private float cTVol;
    @Basic(optional = false)
    @NotNull
    @Column(name = "PFVID")
    private int pfvid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "SFVID")
    private int sfvid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "CVID")
    private int cvid;
    @Basic(optional = false)
    @NotNull
    @Column(name = "KegVols")
    private float kegVols;
    @Basic(optional = false)
    @NotNull
    @Column(name = "BtlVols")
    private float btlVols;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttColor")
    private int ganttColor;
    @Column(name = "GanttStart")
    @Temporal(TemporalType.DATE)
    private Date ganttStart;
    @Column(name = "GanttSecond")
    @Temporal(TemporalType.DATE)
    private Date ganttSecond;
    @Column(name = "GanttCond")
    @Temporal(TemporalType.DATE)
    private Date ganttCond;
    @Column(name = "GanttStop")
    @Temporal(TemporalType.DATE)
    private Date ganttStop;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttPID")
    private int ganttPID;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttSID")
    private int ganttSID;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttCID")
    private int ganttCID;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 250)
    @Column(name = "GanttFGI")
    private String ganttFGI;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttFilter")
    private boolean ganttFilter;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttHarvest")
    private boolean ganttHarvest;
    @Column(name = "GanttHarvestDate")
    @Temporal(TemporalType.DATE)
    private Date ganttHarvestDate;
    @Basic(optional = false)
    @NotNull
    @Column(name = "GanttFine")
    private boolean ganttFine;
    @Basic(optional = false)
    @NotNull
    @Column(name = "version")
    @Version
    private int version;
    @Basic(optional = false)
    @NotNull
    @Column(name = "origBrew")
    private int origBrew;
    @JoinColumn(name = "BBeerID", referencedColumnName = "BId")
    @ManyToOne(optional = false)
    private BeerView bBeerID;
    @JoinColumn(name = "RID", referencedColumnName = "RID")
    @ManyToOne(optional = false)
    private Recipes rid;
    @JoinColumn(name = "BrewNoteID", referencedColumnName = "BNID", nullable=true)
    @ManyToOne(optional=true)
    private BrewNotes brewNoteID;
    @JoinColumn(name = "BrewNoteID2", referencedColumnName = "BNID", nullable=true)
    @ManyToOne(optional=true)
    private BrewNotes brewNoteID2;
    @JoinColumn(name = "BrewNoteID3", referencedColumnName = "BNID", nullable=true)
    @ManyToOne(optional=true)
    private BrewNotes brewNoteID3;
    @JoinColumn(name = "BrewNoteID4", referencedColumnName = "BNID", nullable=true)
    @ManyToOne(optional=true)
    private BrewNotes brewNoteID4;
    @JoinColumn(name = "BrewNoteID5", referencedColumnName = "BNID", nullable=true)
    @ManyToOne(optional=true)
    private BrewNotes brewNoteID5;
    @JoinColumn(name = "BrewNoteID6", referencedColumnName = "BNID", nullable=true)
    @ManyToOne(optional=true)
    private BrewNotes brewNoteID6;
    @OneToMany(cascade=CascadeType.ALL, orphanRemoval = true)
    @CascadeOnDelete
    @JoinTable(
        name="JTBrewToDryHopNotes",
        joinColumns={ @JoinColumn(name="BID", referencedColumnName="BID")},
        inverseJoinColumns={ @JoinColumn(name="dryHopNoteID", referencedColumnName="dryHopNoteID", unique=true)}
    )
    private List<DryHopNotes> dryHopNoteCollection;
    @OneToMany(cascade=CascadeType.ALL, orphanRemoval = true)
    @CascadeOnDelete
    @JoinTable(
        name="JTBrewToFermentationNotes",
        joinColumns={ @JoinColumn(name="BID", referencedColumnName="BID")},
        inverseJoinColumns={ @JoinColumn(name="fermNotesID", referencedColumnName="fermNotesID", unique=true)}
    )
    private List<FermentationNotes> fermentationNoteCollection;
    @OneToMany(cascade=CascadeType.ALL, orphanRemoval = true)
    @CascadeOnDelete
    @JoinTable(
        name="JTBrewToPitchNotes",
        joinColumns={ @JoinColumn(name="BID", referencedColumnName="BID")},
        inverseJoinColumns={ @JoinColumn(name="pitchNoteID", referencedColumnName="pitchNoteID", unique=true)}
    )
    private List<PitchNotes> pitchNoteCollection;

    public Brews() {
    }

    public Brews(Integer bid) {
        this.bid = bid;
    }

    public Brews(Integer bid, int bState, Date bDate, float sFTemp01, float sFGrav01, Date sFDate01, Date sFTime01, String sFNote01, float btg, Date cTDate, Date cTTime, float bpsi, float cTTemp, Date pDate, Date pTime, float volLeft, float sFVol01, float cTVol, int pfvid, int sfvid, int cvid, float kegVols, float btlVols, int ganttColor, Date ganttStart, Date ganttSecond, Date ganttCond, Date ganttStop, int ganttPID, int ganttSID, int ganttCID, String ganttFGI, boolean ganttFilter, boolean ganttHarvest, Date ganttHarvestDate, boolean ganttFine, int version, int origBrew) {
        this.bid = bid;
        this.bState = bState;
        this.bDate = bDate;
        this.sFTemp01 = sFTemp01;
        this.sFGrav01 = sFGrav01;
        this.sFDate01 = sFDate01;
        this.sFTime01 = sFTime01;
        this.sFNote01 = sFNote01;
        this.btg = btg;
        this.cTDate = cTDate;
        this.cTTime = cTTime;
        this.bpsi = bpsi;
        this.cTTemp = cTTemp;
        this.pDate = pDate;
        this.pTime = pTime;
        this.volLeft = volLeft;
        this.sFVol01 = sFVol01;
        this.cTVol = cTVol;
        this.pfvid = pfvid;
        this.sfvid = sfvid;
        this.cvid = cvid;
        this.kegVols = kegVols;
        this.btlVols = btlVols;
        this.ganttColor = ganttColor;
        this.ganttStart = ganttStart;
        this.ganttSecond = ganttSecond;
        this.ganttCond = ganttCond;
        this.ganttStop = ganttStop;
        this.ganttPID = ganttPID;
        this.ganttSID = ganttSID;
        this.ganttCID = ganttCID;
        this.ganttFGI = ganttFGI;
        this.ganttFilter = ganttFilter;
        this.ganttHarvest = ganttHarvest;
        this.ganttHarvestDate = ganttHarvestDate;
        this.ganttFine = ganttFine;
        this.version = version;
        this.origBrew = origBrew;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public BrewNotes getBrewNoteID() {
        return brewNoteID;
    }

    public void setBrewNoteID(BrewNotes brewNoteID) {
        //if(brewNoteID != null && brewNoteID.getBnid() != null){
            this.brewNoteID = brewNoteID;
        //}
    }

    public BrewNotes getBrewNoteID2() {
        return brewNoteID2;
    }

    public void setBrewNoteID2(BrewNotes brewNoteID2) {
        //if(brewNoteID2 != null && brewNoteID2.getBnid() != null){
            this.brewNoteID2 = brewNoteID2;
        //}
    }

    public BrewNotes getBrewNoteID3() {
        return brewNoteID3;
    }

    public void setBrewNoteID3(BrewNotes brewNoteID3) {
        //if(brewNoteID3 != null && brewNoteID3.getBnid() != null){
            this.brewNoteID3 = brewNoteID3;
        //}
    }

    public BrewNotes getBrewNoteID4() {
        return brewNoteID4;
    }

    public void setBrewNoteID4(BrewNotes brewNoteID4) {
        //if(brewNoteID4 != null && brewNoteID4.getBnid() != null){
            this.brewNoteID4 = brewNoteID4;
        //}
    }

    public BrewNotes getBrewNoteID5() {
        return brewNoteID5;
    }

    public void setBrewNoteID5(BrewNotes brewNoteID5) {
        //if(brewNoteID5 != null && brewNoteID5.getBnid() != null){
            this.brewNoteID5 = brewNoteID5;
        //}
    }

    public BrewNotes getBrewNoteID6() {
        return brewNoteID6;
    }

    public void setBrewNoteID6(BrewNotes brewNoteID6) {
        //if(brewNoteID6 != null && brewNoteID6.getBnid() != null){
            this.brewNoteID6 = brewNoteID6;
        //}
    }

    public int getBState() {
        return bState;
    }

    public void setBState(int bState) {
        this.bState = bState;
    }

    public Date getBDate() {
        return bDate;
    }

    public void setBDate(Date bDate) {
        this.bDate = bDate;
    }

    public float getSFTemp01() {
        return sFTemp01;
    }

    public void setSFTemp01(float sFTemp01) {
        this.sFTemp01 = sFTemp01;
    }

    public float getSFGrav01() {
        return sFGrav01;
    }

    public void setSFGrav01(float sFGrav01) {
        this.sFGrav01 = sFGrav01;
    }

    public Date getSFDate01() {
        return sFDate01;
    }

    public void setSFDate01(Date sFDate01) {
        this.sFDate01 = sFDate01;
    }

    public Date getSFTime01() {
        return sFTime01;
    }

    public void setSFTime01(Date sFTime01) {
        this.sFTime01 = sFTime01;
    }

    public String getSFNote01() {
        return sFNote01;
    }

    public void setSFNote01(String sFNote01) {
        this.sFNote01 = sFNote01;
    }

    public float getBtg() {
        return btg;
    }

    public void setBtg(float btg) {
        this.btg = btg;
    }

    public Date getCTDate() {
        return cTDate;
    }

    public void setCTDate(Date cTDate) {
        this.cTDate = cTDate;
    }

    public Date getCTTime() {
        return cTTime;
    }

    public void setCTTime(Date cTTime) {
        this.cTTime = cTTime;
    }

    public float getBpsi() {
        return bpsi;
    }

    public void setBpsi(float bpsi) {
        this.bpsi = bpsi;
    }

    public float getCTTemp() {
        return cTTemp;
    }

    public void setCTTemp(float cTTemp) {
        this.cTTemp = cTTemp;
    }

    public Date getPDate() {
        return pDate;
    }

    public void setPDate(Date pDate) {
        this.pDate = pDate;
    }

    public Date getPTime() {
        return pTime;
    }

    public void setPTime(Date pTime) {
        this.pTime = pTime;
    }

    public float getVolLeft() {
        return volLeft;
    }

    public void setVolLeft(float volLeft) {
        this.volLeft = volLeft;
    }

    public float getSFVol01() {
        return sFVol01;
    }

    public void setSFVol01(float sFVol01) {
        this.sFVol01 = sFVol01;
    }

    public float getCTVol() {
        return cTVol;
    }

    public void setCTVol(float cTVol) {
        this.cTVol = cTVol;
    }

    public int getPfvid() {
        return pfvid;
    }

    public void setPfvid(int pfvid) {
        this.pfvid = pfvid;
    }

    public int getSfvid() {
        return sfvid;
    }

    public void setSfvid(int sfvid) {
        this.sfvid = sfvid;
    }

    public int getCvid() {
        return cvid;
    }

    public void setCvid(int cvid) {
        this.cvid = cvid;
    }

    public float getKegVols() {
        return kegVols;
    }

    public void setKegVols(float kegVols) {
        this.kegVols = kegVols;
    }

    public float getBtlVols() {
        return btlVols;
    }

    public void setBtlVols(float btlVols) {
        this.btlVols = btlVols;
    }

    public int getGanttColor() {
        return ganttColor;
    }

    public void setGanttColor(int ganttColor) {
        this.ganttColor = ganttColor;
    }

    public Date getGanttStart() {
        return ganttStart;
    }

    public void setGanttStart(Date ganttStart) {
        this.ganttStart = ganttStart;
    }

    public Date getGanttSecond() {
        return ganttSecond;
    }

    public void setGanttSecond(Date ganttSecond) {
        this.ganttSecond = ganttSecond;
    }

    public Date getGanttCond() {
        return ganttCond;
    }

    public void setGanttCond(Date ganttCond) {
        this.ganttCond = ganttCond;
    }

    public Date getGanttStop() {
        return ganttStop;
    }

    public void setGanttStop(Date ganttStop) {
        this.ganttStop = ganttStop;
    }

    public int getGanttPID() {
        return ganttPID;
    }

    public void setGanttPID(int ganttPID) {
        this.ganttPID = ganttPID;
    }

    public int getGanttSID() {
        return ganttSID;
    }

    public void setGanttSID(int ganttSID) {
        this.ganttSID = ganttSID;
    }

    public int getGanttCID() {
        return ganttCID;
    }

    public void setGanttCID(int ganttCID) {
        this.ganttCID = ganttCID;
    }

    public String getGanttFGI() {
        return ganttFGI;
    }

    public void setGanttFGI(String ganttFGI) {
        this.ganttFGI = ganttFGI;
    }

    public boolean getGanttFilter() {
        return ganttFilter;
    }

    public void setGanttFilter(boolean ganttFilter) {
        this.ganttFilter = ganttFilter;
    }

    public boolean getGanttHarvest() {
        return ganttHarvest;
    }

    public void setGanttHarvest(boolean ganttHarvest) {
        this.ganttHarvest = ganttHarvest;
    }

    public Date getGanttHarvestDate() {
        return ganttHarvestDate;
    }

    public void setGanttHarvestDate(Date ganttHarvestDate) {
        this.ganttHarvestDate = ganttHarvestDate;
    }

    public boolean getGanttFine() {
        return ganttFine;
    }

    public void setGanttFine(boolean ganttFine) {
        this.ganttFine = ganttFine;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getOrigBrew() {
        return origBrew;
    }

    public void setOrigBrew(int origBrew) {
        this.origBrew = origBrew;
    }

    public BeerView getBBeerID() {
        return bBeerID;
    }

    public void setBBeerID(BeerView bBeerID) {
        this.bBeerID = bBeerID;
    }

    public Recipes getRid() {
        return rid;
    }

    public void setRid(Recipes rid) {
        this.rid = rid;
    }

    public List<DryHopNotes> getDryHopNoteCollection() {
        return dryHopNoteCollection;
    }

    public void setDryHopNoteCollection(List<DryHopNotes> dryHopNoteCollection) {
        this.dryHopNoteCollection = dryHopNoteCollection;
    }

    public List<FermentationNotes> getFermentationNoteCollection() {
        return fermentationNoteCollection;
    }

    public void setFermentationNoteCollection(List<FermentationNotes> fermentationNoteCollection) {
        this.fermentationNoteCollection = fermentationNoteCollection;
    }

    public List<PitchNotes> getPitchNoteCollection() {
        return pitchNoteCollection;
    }

    public void setPitchNoteCollection(List<PitchNotes> pitchNoteCollection) {
        this.pitchNoteCollection = pitchNoteCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (bid != null ? bid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Brews)) {
            return false;
        }
        Brews other = (Brews) object;
        if ((this.bid == null && other.bid != null) || (this.bid != null && !this.bid.equals(other.bid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.openbrew.openbrewrf.Brews[ bid=" + bid + " ]";
    }
    
    public String getBrewDescription(){
        return Integer.toString(this.bid) + ": " + this.getBBeerID().getbName();
    }
    
}
